<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图标字体</title>
    <!-- fontawesome 清凉 -->
    <link rel="stylesheet" href="fontawesome-free-5.15.3-web/css/all.css">
    <style>
        li{
            list-style: none;
        }
        li::before{
            /* 通过伪元素设置图标字体
            1、找到要设置图标的元素 通过::before/after选中
            2、在content中设置字体的编码
            3、设置字体的样式font-family 
               fab
               font-family:'Font Awesome 5 Brands';

               fas
               font-family:'Font Awesome 5 Free';
               font-weight:900;
             */
            content: '\f004';
            /* font-family:'Font Awesome 5 Brands'; */
            font-family:'Font Awesome 5 Free';
               font-weight:900;
            padding-right: 5px;
            color: red;

        }
    </style>
</head>
<body>
    <ul>
        <li>锄禾日当午</li>
        <li>汗滴禾下土</li>
        <li>谁知盘中餐</li>
        <li>粒粒皆辛苦</li>
    </ul>
    <!-- 通过实体使用图标字体  &;  实体以&开头 ;结尾 中间#x + 图标编码
       class="fas"
    -->
    <span class="fas">&#xf0f3;</span>
</body>
</html>